<template>
  <el-row>
    <el-col>
      <el-button type="text" @click="_goBack(-1)" size="small"><i class="el-icon-back"></i>返回</el-button>
    </el-col>
    <el-col>
      <!-- 基础信息   -->
      <resource-basic-info :coverage-list="coverage"
                           :mode-list="openMode"
                           :rid="resourceId"></resource-basic-info>
    </el-col>
    <!--  服务信息   -->
    <el-col>
      <map-service-info :type-list="mapDataType"
                        :ser-status-list="serStatus"
                        :csys-list="mapCsys"
                        :rid="resourceId"></map-service-info>
    </el-col>
    <!--  API   -->
    <el-col>
      <resource-api :rid="resourceId"></resource-api>
    </el-col>
  </el-row>
</template>

<script>
import {resourceDict} from "@/api/resources-center/service";
import ResourceBasicInfo from '@/views/data-center/ResourceBasicInfo';
import MapServiceInfo from './MapServiceInfo'
import ResourceApi from '@/views/data-center/ResourceApi'

/**
 * {地图服务编辑}
 *
 * @author: 宋康
 * @date: 2023/2/7
 */
export default {
  name: "MapServiceEdit",
  mixins: [resourceDict],
  components: {ResourceBasicInfo, MapServiceInfo, ResourceApi},
  data() {
    return {
      resourceId: ''
    }
  },
  methods: {},
  mounted() {
    this.resourceId = this.$route.query.resourceId || '-1';
    this.queryDict().then(() => {
    })
  },
}
</script>

<style lang="scss" scoped>
</style>
